<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>我的抽奖</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <meta name="apple-touch-fullscreen" content="yes">
    <meta name="full-screen" content="yes">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="white">
    <meta name="format-detection" content="telephone=no"/>
    <meta name="format-detection" content="address=no">
    <script src="../../js/jquery-2.1.1.min.js"></script>
    <script type="text/javascript">
        var docEl = document.documentElement;
        var clientWidth = docEl.clientWidth;
        docEl.style.fontSize = (clientWidth / 10) + 'px';
        $(document).ready(function () {
            (function (doc, win) {
                var docEl = doc.documentElement,
                        resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize',
                        recalc = function () {
                            var clientWidth = docEl.clientWidth;
                            docEl.style.fontSize = (clientWidth / 10) + 'px';
                        };

                if (!doc.addEventListener) return;
                win.addEventListener(resizeEvt, recalc, false);
                doc.addEventListener('DOMContentLoaded', recalc, false);
            })(document, window);
        });
    </script>
    <link rel="stylesheet" href="../../style/css/index.css"/>
</head>
<body>
<div style="background: #f7f7f7;width: 100%;height: 100%">
    <!--header-->
    <div class="header">
        <img class="back" src="../../style/images/sg_ic_back.png" alt=""/>

        <p class="orderName">我的抽奖</p>
    </div>
    <!-- content-->
    <div class="contactWay" style="margin-top: 10px;">
        <div class="status">组团中</div>
        <div style="width: 100%;margin-bottom: 10px;">
            <img class="food_pic" src="" alt="" id="image">

            <div class="food_name">
                <p id="title">香香蕉香蕉香蕉香蕉香蕉香蕉香蕉香香蕉香蕉香香香蕉蕉香蕉香蕉香香蕉香蕉蕉</p>
                <span class="price" id="price">
                    ￥99
                <span class="pNum">2人团</span>
                </span>
            </div>
            <div class="clear"></div>
        </div>
        <div class="payMoney">
            <span>实付款：￥109</span>

            <div>查看团详情</div>
        </div>
    </div>


</div>
</body>
</html>
<script src="../../js/md5.js"></script>
<script src="../../js/md5_need.js"></script>
<script type="text/javascript" charset="utf-8">
    $(document).ready(function () {
        var indexJs = {
            getGoodsInfo: function () {
                http({
                    apiCode: '_goods_info_001',
                    id: '110', //商品id
                    userToken: "86b427f571d452f17272b356061a1db2"
                }, function (respond) {
                    var goodInfo = respond.info.goodinfo;
                    document.getElementById('price').innerText = "￥" + goodInfo.discount_price;
                    document.getElementById('title').innerText = goodInfo.title;
                    document.getElementById('image').src = goodInfo.img_path[0];
                    console.log(goodInfo);
                })
            }
        };
        indexJs.getGoodsInfo();
//        window.onload =indexJs.getmoney();
    });
</script>